<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>系统消息</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript" src="${ctxStatic }/js/wdcf.js"></script>
		<link href="${ctxStatic}/jquery-pagination/pagination.css" rel="stylesheet" />
		<script type="text/javascript" src="${ctxStatic }/jquery-pagination/jquery-pagination.js"></script>
		<script type="text/javascript">
			var pagenum=parseInt("${pagenum-1}");
			var pagesize=parseInt("${pagesize}");
			var totalCount=parseInt("${totalCount}");
			$(function(){
				// 创建分页元素				
				$("#Pagination").pagination(totalCount, {
					num_edge_entries: 2,
					current_page: pagenum,
					items_per_page: pagesize,
					num_display_entries: pagesize,
					prev_text: "上一页",
					next_text:"下一页",
					num_display_entries: 8,
					callback: pageselectCallback  //回调函数
				});

			})
			
			function pageselectCallback(page_id, jq){
				$("#pagenum").val(page_id+1);
				$("#pageForm").submit();			
			}

		</script>
	</head>
<body>
<div class="header_tit">
	<div class="header_titbox">
    	<a class="tit_home" href="#">返回账户首页</a>
        <h2 class="header_tit1">我的财富</h2>
        >
        <h3 class="header_tit2">系统消息</h3>
    </div>
</div>
<div class="wdcf_box">
	<div class="wdcf_centerbox clearfix">
    	<div class="wdcf_navleft">
        	<div class="wdcf_title">我的财富</div>
            <ul>
                <li><a href="${ctx }/my/hyxx">完善信息</a></li>
                <li><a href="${ctx }/my/hisloan">历史借款</a></li>
                <li><a href="${ctx }/my/hislc">历史收益</a></li>
                <li><a href="${ctx }/my/fcb">发财币</a></li>
                <li><a href="${ctx }/my/message">系统消息</a></li>
                <li><a href="${ctx }/my/modpass">密码修改</a></li>
            </ul>
        </div>

        <div class="xtxx_rightbox">
        	<div class="xtxx_down">
            	<h3>系统消息</h3>
                <div class="xtxx_box clearfix">
					<ul class="xtxx_text">
					<c:forEach var="map" items="${list}">
                		<li>
                    		<span>${map['sj']}</span>
                        	<a href="javascript:;">${map['xxnr']}</a>
                    	</li>
                    </c:forEach>
                	</ul>
				</div>
				<div class="zxdt_xinwen_list">                
					<div id="Pagination" class="pagination"></div>
					<form id="pageForm" method="post" action="${ctx }/my/message">
						<input type="hidden" id="pagenum" name="pagenum" value="${pagenum }"/>
						<input type="hidden" id="pagesize" name="pagesize" value="${pagesize }"/>
					</form>
				</div>                
			</div>
		</div>
	</div>
</div>
</body>
</html>